import request from '@/utils/request'

// 查询财务报列表
export function listFinancialStatement(query) {
  return request({
    url: '/supply/financialStatement/list',
    method: 'get',
    params: query
  })
}

// 查询财务报详细
export function getFinancialStatement(id) {
  return request({
    url: '/supply/financialStatement/' + id,
    method: 'get'
  })
}

// 新增财务报
export function addFinancialStatement(data) {
  return request({
    url: '/supply/financialStatement',
    method: 'post',
    data: data
  })
}

// 修改财务报
export function updateFinancialStatement(data) {
  return request({
    url: '/supply/financialStatement',
    method: 'put',
    data: data
  })
}

// 删除财务报
export function delFinancialStatement(id) {
  return request({
    url: '/supply/financialStatement/' + id,
    method: 'delete'
  })
}
